Mona: Decidable Arithmetic in Practice

نویسندگان

  • Morten Biehl
  • Nils Klarlund
  • Theis Rauhe
چکیده

In this note, we describe how a fragment of arithmetic can be decided in practice. We follow essentially the ideas of 8], which we have embedded in the Mona tool. Mona is an implementation of Monadic Second-order Logic on nite strings (and trees). The previous semantics used in Mona is the one provided in current literature 7, 9], where the meaning of rst-order terms is restricted to being a position in the string over which the formula is interpreted. In this note, we describe our new semantics, where terms are interpreted relative to all natural numbers. With this semantics Mona becomes a decision procedure for the calculus called WS1S, the Weak Second-order theory of 1 Successor. We also show how the Mona representation of automata subsumes a recent proposal for representing queues. We exploit the natural semantics to carry out automated reasoning about queue operations. In practice, the fundamental concept of regularity ((nite-state acceptance of strings) is often exceedingly hard to express. For example, regular expressions (as used in text editors and UNIX shell programming) are elegant when expressing simple patterns, but often unreadable for patterns of even modest complexity. The aim of the FIDO/Mona project pursued at the University of Aarhus is to devise new practical means of describing nite-state systems in formal logics that naturally capture informal requirements. Mona is a tool that translates formulas to nite-state automata. The formulas may express search patterns, temporal properties of reactive systems, or parse tree constraints. Mona is based on Monadic Second-order Logic on nite strings. (FIDO is a high-level language, incorporating logic and many usual programming language concepts like recursive data types. A FIDO program is translated into Mona, which in turn is translated into an automaton.) In this paper, we discuss a new semantics for Mona that we have recently implemented. We also show that a recently proposed data structure for representing queues 2] is but a special case of the BDD-represented automata of Mona. Some Mona applications The previous Mona implementationfor nite strings is described in 3]. We have applied Mona to hardware veriication 1], veri-cation of complicated behavioral descriptions of distributed systems 5], and

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Quantum Gate as a Physical Model of an Universal Arithmetical Algorithm without Church’s Undecidability and Gödel’s Incompleteness

In this work we define an universal arithmetical algorithm, by means of the standard quantum mechanical formalism, called universal qm-arithmetical algorithm. By universal qm-arithmetical algorithm any decidable arithmetical formula (operation) can be decided (realized, calculated. Arithmetic defined by universal qm-arithmetical algorithm called qmarithmetic one-to-one corresponds to decidable ...

متن کامل

Automata Based Symbolic Reasoning in Hardware Veriication *

We present a new approach to hardware veriication based on describing circuits in Monadic Second-order Logic (M2L). We show how to use this logic to represent generic designs like n-bit adders, which are parameterized in space, and sequential circuits, where time is an unbounded parameter. M2L admits a decision procedure, implemented in the Mona tool 17], which reduces formulas to canonical aut...

متن کامل

Beyond the Finite in Automatic Hardware Veriication

We present a new approach to hardware veriication based on describing circuits in Monadic Second-order Logic (M2L). We show how to use this logic to represent generic designs like n-bit adders, which are para-meterized in space, and sequential circuits, where time is an unbounded parameter. M2L admits a decision procedure, implemented in the Mona tool 16], which reduces formulas to canonical au...

متن کامل

Efficient Algorithms for Deciding Properties of Heaps using STRAND

In recent work [8], we defined a logic called Strand that expresses properties of heaps combined with the data stored in the nodes of the heap. The salient feature of this logic is that it can state complex properties of heaps with data, and also admits decidable fragments. We had identified both a semantic fragment of Strand, as well as a syntactic fragment of it that is decidable. The decisio...

متن کامل

The equational theory of ⟨N, 0, 1,+,×, ↑⟩ is decidable, but not finitely axiomatisable

In 1969, Tarski asked whether the arithmetic identities taught in high school are complete for showing all arithmetic equations valid for the natural numbers. We know the answer to this question for various subsystems obtained by restricting in different ways the language of arithmetic expressions, yet, up to now we knew nothing of the original system that Tarski considered when he started all ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996